import React from 'react';
import './App.css';
import {useAuth} from "./context/authContext";
import {AuthenticatedApp} from "./authentictedApp";
import {UnathenticatedApp} from "./unauthentictedApps";

function App() {
    const {user} = useAuth()
  return (
    <div className="App">
        {user ? <AuthenticatedApp/> : <UnathenticatedApp/>}
    </div>
  );
}

export default App;
